/* 节点字体定义 - 精简版 */
@import url('https://fonts.googleapis.com/css2?family=Roboto:wght@300;400;500;700&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Open+Sans:wght@300;400;500;600;700&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@300;400;500;600;700&display=swap');

/* 中文字体 */
.font-heiti {
  font-family: "黑体", "SimHei", "Microsoft YaHei", sans-serif;
}

.font-songti {
  font-family: "宋体", "SimSun", "Microsoft YaHei", serif;
}

.font-yahei {
  font-family: "微软雅黑", "Microsoft YaHei", "PingFang SC", "Hiragino Sans GB", sans-serif;
}

.font-kaiti {
  font-family: "楷体", "KaiTi", "Microsoft YaHei", serif;
}

.font-fangsong {
  font-family: "仿宋", "FangSong", "Microsoft YaHei", serif;
}

.font-lishu {
  font-family: "隶书", "LiSu", "Microsoft YaHei", serif;
}

.font-youyuan {
  font-family: "幼圆", "YouYuan", "Microsoft YaHei", sans-serif;
}

/* 英文字体 */
.font-arial {
  font-family: "Arial", sans-serif;
}

.font-helvetica {
  font-family: "Helvetica", "Arial", sans-serif;
}

.font-times {
  font-family: "Times New Roman", "Times", serif;
}

.font-georgia {
  font-family: "Georgia", serif;
}

.font-verdana {
  font-family: "Verdana", sans-serif;
}

.font-tahoma {
  font-family: "Tahoma", sans-serif;
}

.font-trebuchet {
  font-family: "Trebuchet MS", sans-serif;
}

.font-courier {
  font-family: "Courier New", "Courier", monospace;
}

.font-consolas {
  font-family: "Consolas", "Monaco", monospace;
}

/* Google字体 */
.font-roboto {
  font-family: "Roboto", sans-serif;
}

.font-open-sans {
  font-family: "Open Sans", sans-serif;
}

.font-lato {
  font-family: "Lato", sans-serif;
}

.font-montserrat {
  font-family: "Montserrat", sans-serif;
}

.font-poppins {
  font-family: "Poppins", sans-serif;
}

.font-source-sans {
  font-family: "Source Sans Pro", sans-serif;
}

/* 字体权重类 */
.font-weight-light {
  font-weight: 300;
}

.font-weight-normal {
  font-weight: 400;
}

.font-weight-medium {
  font-weight: 500;
}

.font-weight-semibold {
  font-weight: 600;
}

.font-weight-bold {
  font-weight: 700;
}

/* 字体样式类 */
.font-style-normal {
  font-style: normal;
}

.font-style-italic {
  font-style: italic;
}

/* 文本装饰 */
.text-decoration-none {
  text-decoration: none;
}

.text-decoration-underline {
  text-decoration: underline;
}

.text-decoration-line-through {
  text-decoration: line-through;
}

/* 文本对齐 */
.text-align-left {
  text-align: left;
}

.text-align-center {
  text-align: center;
}

.text-align-right {
  text-align: right;
}

.text-align-justify {
  text-align: justify;
}

/* 字体大小类 */
.font-size-xs {
  font-size: 10px;
}

.font-size-sm {
  font-size: 12px;
}

.font-size-base {
  font-size: 14px;
}

.font-size-lg {
  font-size: 16px;
}

.font-size-xl {
  font-size: 18px;
}

.font-size-2xl {
  font-size: 20px;
}

.font-size-3xl {
  font-size: 24px;
}

/* 行高 */
.line-height-tight {
  line-height: 1.25;
}

.line-height-normal {
  line-height: 1.5;
}

.line-height-loose {
  line-height: 1.75;
}

/* 字母间距 */
.letter-spacing-tight {
  letter-spacing: -0.05em;
}

.letter-spacing-normal {
  letter-spacing: 0;
}

.letter-spacing-wide {
  letter-spacing: 0.05em;
}

/* 文本颜色 */
.text-color-black {
  color: #000000;
}

.text-color-white {
  color: #ffffff;
}

.text-color-gray {
  color: #666666;
}

.text-color-dark-gray {
  color: #333333;
}

.text-color-light-gray {
  color: #999999;
}

.text-color-blue {
  color: #1890ff;
}

.text-color-red {
  color: #ff4d4f;
}

.text-color-green {
  color: #52c41a;
}

.text-color-orange {
  color: #fa8c16;
}

.text-color-purple {
  color: #722ed1;
}

.text-color-cyan {
  color: #13c2c2;
}

.text-color-yellow {
  color: #fadb14;
}

.text-color-pink {
  color: #eb2f96;
}

/* 文本阴影 */
.text-shadow-sm {
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
}

.text-shadow-base {
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.12), 0 1px 2px rgba(0, 0, 0, 0.24);
}

.text-shadow-lg {
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

/* 文本描边 */
.text-stroke-black {
  -webkit-text-stroke: 1px #000000;
  text-stroke: 1px #000000;
}

.text-stroke-white {
  -webkit-text-stroke: 1px #ffffff;
  text-stroke: 1px #ffffff;
}

.text-stroke-blue {
  -webkit-text-stroke: 1px #1890ff;
  text-stroke: 1px #1890ff;
}

/* 混合样式 */
.text-title {
  font-family: "微软雅黑", "Microsoft YaHei", sans-serif;
  font-size: 18px;
  font-weight: 600;
  color: #333333;
  line-height: 1.4;
}

.text-subtitle {
  font-family: "微软雅黑", "Microsoft YaHei", sans-serif;
  font-size: 14px;
  font-weight: 500;
  color: #666666;
  line-height: 1.5;
}

.text-body {
  font-family: "微软雅黑", "Microsoft YaHei", sans-serif;
  font-size: 12px;
  font-weight: 400;
  color: #333333;
  line-height: 1.6;
}

.text-caption {
  font-family: "微软雅黑", "Microsoft YaHei", sans-serif;
  font-size: 10px;
  font-weight: 400;
  color: #999999;
  line-height: 1.4;
}

.text-code {
  font-family: "Consolas", "Monaco", monospace;
  font-size: 12px;
  font-weight: 400;
  color: #333333;
  background-color: #f5f5f5;
  padding: 2px 4px;
  border-radius: 3px;
}

/* 响应式字体 */
@media (max-width: 768px) {
  .text-title {
    font-size: 16px;
  }

  .text-subtitle {
    font-size: 12px;
  }

  .text-body {
    font-size: 11px;
  }

  .text-caption {
    font-size: 9px;
  }
}

/* 深色模式支持 */
@media (prefers-color-scheme: dark) {
  .text-color-black {
    color: #ffffff;
  }

  .text-color-white {
    color: #000000;
  }

  .text-color-gray {
    color: #cccccc;
  }

  .text-color-dark-gray {
    color: #ffffff;
  }

  .text-color-light-gray {
    color: #999999;
  }

  .text-title {
    color: #ffffff;
  }

  .text-subtitle {
    color: #cccccc;
  }

  .text-body {
    color: #ffffff;
  }

  .text-caption {
    color: #999999;
  }
}

/* 高对比度模式支持 */
@media (prefers-contrast: high) {
  .text-color-gray {
    color: #000000;
  }

  .text-color-light-gray {
    color: #333333;
  }

  .text-subtitle {
    color: #000000;
  }

  .text-caption {
    color: #333333;
  }
}

/* 字体优化 */
.text-optimized {
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}

/* 防止字体闪烁 */
.font-display-swap {
  font-display: swap;
}

/* 无衬线字体优化 */
.font-sans-optimized {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, "Noto Sans", sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol", "Noto Color Emoji";
}

/* 衬线字体优化 */
.font-serif-optimized {
  font-family: Georgia, Cambria, "Times New Roman", Times, serif;
}

/* 等宽字体优化 */
.font-mono-optimized {
  font-family: SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace;
}
